﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcBJDCWebApp.Models.League
{
    public class LeagueDetail
    {
        public int LeagueDetailID { get; set; }
        public int LeagueTypeID { get; set; }

        public string c1 { get; set; }
        public string c2 { get; set; }
        public string c3 { get; set; }
        public string c4T1 { get; set; }
        public string c4T1URL { get; set; }
        public string c4R { get; set; }
        public string c4T2 { get; set; }
        public string c4T2URL { get; set; }
        public string c51 { get; set; }
        public string c51Link { get; set; }
        public string c52 { get; set; }
        public string c52Link { get; set; }
        public string liveid { get; set; }

        public string MatchDate
        {
            get
            {
                return GetMatchDate();
            }
        }

        private string GetMatchDate()
        {
            string mdate = string.Empty;



            return string.Format("{0} {1}", this.c2.Substring(0, 4), this.c3);
        }
    }
}